import { defineStore } from 'pinia'
import axios from '@/api'
import { ref } from 'vue'
export default defineStore('article', () => {
    let list = ref([])
    function getList() {
        axios.get('/article/help').then((res: any) => {
            list.value = res
        })
    }
    getList()
    function getDetail(id: string) {
        return axios.get('/article/info', { id })
    }
    return { getList, list, getDetail }
})

